from matplotlib import pyplot as plt

input_value = list(range(1, 501))
squares = [x**3 for x in input_value]
plt.scatter(input_value, squares, c=squares,
            cmap=plt.cm.Blues, edgecolor='none', s=40)

# 设置图表标题并给坐标轴加上标签
plt.title("Square Numbers", fontsize=24)
plt.xlabel("Value", fontsize=14)
plt.ylabel("Square of Value", fontsize=14)
# 设置刻度标记的大小
plt.tick_params(axis='both', which='major', labelsize=14)

# plt.axis([0, 1100, 0, 1100000])

plt.show()
